package lesson7;

import java.util.Arrays;

public class taskMaxDelitel {

		public static void main(String[] args) {
			
			System.out.println(findMaxDelitel(15, 10));
			
			
			
			
		}
		
		public static int findMaxDelitel(int a, int b)
		{
			if(a > b)
			{
				return findMaxDelitel(a-b, b);
			}
			else
			if(b > a)
			{
				return findMaxDelitel(a, b-a);
			}
			else//a == b
			{
				return a;
			}
		}
		
}
